package com.etime.shycourse.dto;

import com.etime.shycourse.pojo.Couponlog;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName : CouponlogDto  //类名
 * @Description : 优惠劵使用的日志dto  //描述
 * @Author : W //作者
 * @Date: 2022/3/30  9:22
 */
public class CouponlogDto extends Couponlog {
    //优惠券标题
    private String coupontitle;
    //电话号码
    private String userphone;
    //优惠券图片
    private String couponimg;
    //时间区间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date coupontitleOne;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date coupontitleTwo;

    public String getCouponimg() {
        return couponimg;
    }

    public void setCouponimg(String couponimg) {
        this.couponimg = couponimg;
    }

    public String getCoupontitle() {
        return coupontitle;
    }

    public void setCoupontitle(String coupontitle) {
        this.coupontitle = coupontitle;
    }

    public String getUserphone() {
        return userphone;
    }

    public void setUserphone(String userphone) {
        this.userphone = userphone;
    }

    public Date getCoupontitleOne() {
        return coupontitleOne;
    }

    public void setCoupontitleOne(Date coupontitleOne) {
        this.coupontitleOne = coupontitleOne;
    }

    public Date getCoupontitleTwo() {
        return coupontitleTwo;
    }

    public void setCoupontitleTwo(Date coupontitleTwo) {
        this.coupontitleTwo = coupontitleTwo;
    }
}

